package com.cn.wanxi.service;

import com.cn.wanxi.model.PageModel;
import com.cn.wanxi.model.UserModel;

import java.util.List;
import java.util.Map;

public interface IUserService {
    int addUser(UserModel userModel);

    int updateUser(UserModel userModel);

    int deleteUser(int id);

    UserModel getUser(int id);

    List<UserModel> getUserList();

    boolean userIsExist(String username);

    PageModel<UserModel> getUsers(Map<String, Object> map);

    UserModel login(UserModel userModel);

}
